package com.fly.platform.base.service.elasticsearch

import com.fly.platform.base.pojo.elasticsearch.EsLog
import com.fly.platform.vo.SearchVo
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable

/**
 * @author Fly
 */
interface EsLogService {

    /**
     * 添加日志
     * @param esLog
     * @return
     */
    fun saveLog(esLog: EsLog): EsLog?

    /**
     * 通过id删除日志
     * @param id
     */
    fun deleteLog(id: String)

    /**
     * 删除全部日志
     */
    fun deleteAll()

    /**
     * 分页搜索获取日志
     * @param type
     * @param key
     * @param searchVo
     * @param pageable
     * @return
     */
    fun findByCondition(type: Int?, key: String?, searchVo: SearchVo?, pageable: Pageable?): Page<EsLog?>?
}